<?php
class userComponents extends sfComponents
{
  public function executeMenu()
  {
      $this->greska_nbs = DbFinder::from('Greska')->where('ProfilId', $this->getUser()->getAttribute('id'))->where('Status', GreskaPeer::$status['resen'])->count();
      
      $skola_ids = $this->getUser()->getAttribute('skolas');
      $this->skolas = DbFinder::from('Skola')->where('Id', 'in', $skola_ids)->find();
      $this->operater = DbFinder::from('Profil')->findPk($this->getUser()->getAttribute('id'));
  }
}